package nl.depository.pim.components.security;

import nl.depository.pim.services.Authenticator;

import org.apache.tapestry5.corelib.base.AbstractConditional;
import org.apache.tapestry5.ioc.annotations.Inject;

public class Authenticated extends AbstractConditional
{
	@Inject
	private Authenticator authenticator;
	
	@Override
	protected boolean test()
	{
		return authenticator.isLoggedIn();
	}
}
